package com.xzy.learn.spring.bean.initialization.bean;

import com.xzy.learn.spring.entity.Student;

import javax.annotation.PostConstruct;

/**
 * @author xzy.xiao
 * @date 2022/6/1  17:07
 */
public class StudentA extends Student {

    @PostConstruct
    public void initializationByPostConstructAnnotation() {
        System.out.println("initialization bean by StudentA::initializationByPostConstructAnnotation()");
        this.setRemark("@PostConstruct");
    }
}
